<!--
 * @Author: [kangjie]
 * @Date: 2022-05-06 10:11:05
 * @LastEditors: [kangjie]
 * @LastEditTime: 2022-05-06 10:14:57
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      width: 100px;
      height: 100px;
      /* 隐藏当前元素 
        display:none隐藏当前元素 不占据页面空间
      */
      /* display: none; */
      /*  visibility
        hidden隐藏当前元素 占据页面空间
      */
      /*  */
      /* visibility: hidden; */
      opacity: calc(0);
    }
  </style>
</head>
<body>
  <div>
    我是div
  </div>
</body>
</html>